﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace JTicket.UI
{
    public partial class JT_Main : System.Web.UI.Page
    {
        private string SystemTitle = "【售票系统】";
        private string Level = string.Empty;
      private readonly  BLL.D_OperInfo bllOper = new BLL.D_OperInfo();
      private readonly BLL.C_CodeNote bllCodeNote = new BLL.C_CodeNote();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Level = bllOper.Oper().CurLevel.ToString();
                switch (Level)
                {
                    case "1":
                        break;
                    case "6":
                        break;
                    default:
                        SystemTitle = "【管理系统】";
                        break;
                }
                this.Page.Title = string.Format("{0} {1}-{2}", SystemTitle, bllCodeNote.GetModel("system", "002").CodeNote, bllOper.Oper().ThName);
            }
        }
        public string GetPanle()
        {
            switch (Level)
            {
                case "1":
                    return "JT_SalerPanel.aspx";
                case "6":
                    return "JT_SalerPanel.aspx";
                default:
                    return "JT_ManagerPanel.aspx";
            }
        }
    }
}